Population class extension: miscellaneous functions module

Main script to provide some extra miscellaneous functions that are not part of any of the other mixins yet

class binarycpython.utils.population_extensions.miscellaneous_functions.miscellaneous_functions(**kwargs)[source]

Bases: object

Extension for the Population class containing some miscellaneous functions

expand_args_by_hostname(cmdline_args)[source]

Expand a set of arguments by scanning each of them for host-specific dicts.

Given each arg, either as a string “x=y” or dict {x:y}, determine whether y is a dict and if so does one of the keys match the current hostname or “default”, if so use the corresponding value for the current machine.

my_hostnames()[source]

Function to find the hostnames of the current filesystem